package com.example.dazuoye.mapper;

import com.example.dazuoye.model.Car;
import com.example.dazuoye.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface ManageMapper {
    String getpasswd(@Param("username") String uname);
    int getcid(@Param("carnum") String carnum);
    void setqrcode(@Param("c_id") int c_id,@Param("qrcode") String qrcode_base64);
    void newcar(@Param("carnum") String Carnum,@Param("color") String color,@Param("model") String model,
                @Param("qrcode") String qrcode,@Param("numseat") int numseat,@Param("brand") String brand,@Param("carpicurl") String carpicurl,@Param("carsite")String carsite);
    void newcarusing(@Param("c_id") int Carid,@Param("isusing") int isusing);
    void removeuseritem(@Param("u_id") String Userid);
    void removevipitem(@Param("u_id") String Userid);
    void removewalletitem(@Param("u_id") String Userid);
    void acceptuser(@Param("u_id") String Userid);
    void removecar(@Param("c_id") int Carid);
    void removeusing(@Param("c_id") int Carid);
    void distributecoupon(@Param("u_id") String Userid);
    void uploadcarpic(@Param("carnum") String carnum,@Param("carpicurl") String carpicurl);
    Car quickgetcarinfo(@Param("carnum") String carnum);
    List<User> getalluser();
}
